package com.singletonapps.evory.dao.impl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.singletonapps.evory.dao.UserRoleDao;
import com.singletonapps.evory.entities.UsersRole;

@Repository
public class UserRoleDaoImpl implements UserRoleDao {

	@Autowired
	private SessionFactory session;

	@Override
	public void create(UsersRole userRole) {

		session.getCurrentSession().save(userRole);

	}

}
